package com.techsoul.module.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.pms.pojo.entity.TbWmsMaterialInventoryLending;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialInLocationSearchParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialInventoryLendingSearchParam;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialInLocationVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialInventoryLendingVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 借车维修 Mapper接口
 * 
 * @author shihejun
 * @date 2023-11-15
 */
public interface TbWmsMaterialInventoryLendingMapper extends BaseMapper<TbWmsMaterialInventoryLending> {

    /**
     * 列表
     * @param params
     * @return
     */
    List<TbWmsMaterialInventoryLendingVo> findAll(@Param("params") TbWmsMaterialInventoryLendingSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<TbWmsMaterialInventoryLendingVo> findAll(Page page, @Param("params") TbWmsMaterialInventoryLendingSearchParam params);

    TbWmsMaterialInventoryLendingVo selectByMaterialId(@Param("materialId") String materialId);
}
